package com.bs.teachassistant.activity;

import android.content.Intent;
import android.os.Handler;
import android.view.WindowManager;

import com.bs.teachassistant.R;

/**
 * Created by limh on 2020/4/25.
 */

public class LogoShowActivity extends BaseActivity {

    @Override
    public void initViews() {
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setContentView(R.layout.activity_logo);
    }

    @Override
    public void initDatas() {
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                userPreference.edit().putString("allStud", "").apply();
                Intent intent = new Intent();
                intent.setClass(LogoShowActivity.this, MainActivity.class);
                startActivity(intent);
                overridePendingTransition(R.anim.activity_enter, R.anim.activity_exit);
                finish();
            }
        }, 2000);
    }
}
